@import '@/app/styles/variables';

.container {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  background: #f3f3f3;
}

.page {
  display: flex;
  gap: 32px;
}

.header {
  background: #fff;
}

.wrap {
  margin-top: 32px;
}

.floating_container {
  min-width: 336px !important;
  max-width: 336px !important;
}

.main_title {
  color: #000;
  font-size: 42px;
  font-style: normal;
  font-weight: 500;
  line-height: 46px;
  margin-bottom: 6px;
  word-break: break-word;
}

.course_type {
  color: #ababab;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 30px;
}

.course {
  display: flex;
  gap: 32px;
}

.item {
  display: flex;
  align-items: center;
  user-select: none;
  justify-content: flex-start;
  white-space: nowrap;
  width: 100%;
  border-radius: 16px;
  padding: 16px;
  gap: 12px;
  color: var(--Simple-Red-Day, #ec3333);
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 26px;
  cursor: pointer;
  max-height: 58px;

  svg {
    min-width: 24px;
  }
}

.active {
  background-color: #ebf1fc;
}

.item:hover:not(.active) {
  background-color: #f3f3f3;
}

.floating_container {
  top: 122px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
}

.float_menu {
  display: flex;
  padding: 16px;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  height: min-content;
  border-radius: 32px;
  background: var(--Simple-Morning, #fff);
}

.image {
  position: relative;
  height: 100px;
  width: 100px;
}

@include media(lg) {
  .floating_container {
    min-width: 280px !important;
    max-width: 280px !important;
  }
}

.info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  align-self: stretch;
}

.book_image {
  position: relative;
  width: 100%;
  aspect-ratio: 464 / 611;
  background: var(--simple-gray-morning, #f3f3f3);
  box-shadow: 0 5.659px 5.659px 0 rgba(0, 0, 0, 0.04), 0 5.659px 22.634px 0 rgba(0, 0, 0, 0.08);

  img {
    object-fit: cover;
  }
}

.slick-slider {
  width: 100%;
  display: flex;
}

.link {
  all: unset;
  color: var(--simple-blue-day, #337cec);
  cursor: pointer;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
}

.mobile {
  display: none;
}

.desktop {
  display: unset;
}

.moreBlock {
  position: relative;
}

.more {
  position: absolute;
  right: 0;
  bottom: 4px;
  color: var(--Simple-Blue-Day, #337cec);
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
  cursor: pointer;

  &:hover {
    color: var(--Simple-Blue-Day, #6f99d8);
  }

  &:active {
    color: var(--Simple-Blue-Day, #6f99d8);
  }
}

@include media(md) {
  .main_title {
    font-size: 42px;
    line-height: 40px;
  }
}

@include media(sm) {
  .floating_container {
    display: none;
  }

  .container {
    min-height: calc(100vh - 68px);
  }

  .mobile {
    display: unset;
  }

  .info {
    gap: 16px;
  }

  .desktop {
    display: none;
  }

  .card {
    height: 275px;
  }

  .floating_card_container {
    position: relative;
    width: 100%;
    top: 0;
    z-index: inherit;
  }

  .container {
    background: white;
  }

  .page {
    flex-direction: column;
    gap: 0;
  }

  .wrap {
    margin-top: 0;
  }

  .wrapper {
    padding: 0;
  }

  .footer {
    background: #fff;
  }
}